package example.services;


import example.dto.Children;
import example.dto.ChildrenInfo;
import example.dto.ChildrenInfoList;
import example.dto.Product;

import java.util.List;


public interface MyTestServices {
     int insertPhone_Product(List<Product> productList);//插入子商品
     List<Product> findAll_Product(); //查询主商品
     Integer findProduct_ID(String pName);//查询主商品的ID



     List<Children> findAll_Children(); //查询子商品
     int insertPhone_Children(List<Children> childrenList); //插入子商品
     int deletePhone_Children();//删除所有子商品
     int updatePhone_Children(List<Children> childrenList);//更新子商品
//     Children findChildren_ID(String cName);//查询子商品的ID

     int insertPhone_ChildreninfoList(List<ChildrenInfoList> childrenInfoLists); //插入子商品列表


     int insertPhone_Childreninfo(List<ChildrenInfo> childrenInfoList); //插入子商品详情
     List<ChildrenInfo> findAll_ChildrenInfo(); //查询商品详情
     List<String> findChildrenInfo_ID(String id);//查询商品的ID
}
